//
//  EDSCustomDatePicker.h
//  DrivieSchoolStudents
//
//  Created by TangBin on 2019/6/19.
//  Copyright © 2019 班文政. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EDSCustomLeftRightBtnView.h"

NS_ASSUME_NONNULL_BEGIN

#define kEDSCustomDatePickerHeight (216 + 44)

@interface EDSCustomDatePicker : UIView

@property (nonatomic, strong, readonly) EDSCustomLeftRightBtnView *topView;

/**
 初始化

 Period of time
 
 @param frame frame description
 @param autoSelected 默认YES
 @param isPeriodTime 是否显示 上午，中午，下午 默认不显示  0 表示显示日期；1 表示显示日期时间 2 表示显示时间
 @return return value description
 */
- (instancetype)initWithFrame:(CGRect)frame autoSelected:(BOOL)autoSelected isPeriodTime:(int)isPeriodTime;

/**
 返回日期
 */
@property (nonatomic, copy) void(^touchDateBlock)(NSString *date);

- (void)show;
- (void)hide;

/**
 设置当前日期

 @param entity 2019-03-23
 */
- (void)updateViewData:(id)entity;

@end

NS_ASSUME_NONNULL_END
